Add and use XendDomainInfo.getBackendFlags to decouple image.py from the
authoremellor@ewan <emellor@ewan>
Sun, 18 Sep 2005 21:42:02 +0000 (22:42 +0100)
committeremellor@ewan <emellor@ewan>
Sun, 18 Sep 2005 21:42:02 +0000 (22:42 +0100)
internals of XendDomainInfo, in preparation for changing the latter.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
tools/python/xen/xend/XendDomainInfo.py
tools/python/xen/xend/image.py

index d6b6637b0626e776d7a9b12bdc914d0b8a27cc74..f26323cb94e10c7aa83c08cadf541e77149f027e 100644 (file)
@@ -354,6 +354,10 @@ class XendDomainInfo:
         self.storeDom("store/ring-ref", ref)
 
 
+    def getBackendFlags(self):
+        return self.backend_flags
+
+
     def closeStoreChannel(self):
         """Close the store channel, if any.  Nothrow guarantee."""
         
index 4fe222bf880845de1fd59e17e385d11d91bb060e..6d7f363ffd8d5f391725064f090ecf755a26a508 100644 (file)
@@ -188,7 +188,7 @@ class ImageHandler:
             return
 
         # Set params and call buildDomain().
-        self.flags = self.vm.backend_flags
+        self.flags = self.vm.getBackendFlags()
 
         if not os.path.isfile(self.kernel):
             raise VmError('Kernel image does not exist: %s' % self.kernel)